<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Project</title>
	<%= yield(:keywords) || tag(:meta, :content=>"keywords", :name=>"keywords") %>
	<%= yield(:description) || tag(:meta, :content=>"description", :name=>"description") %>
	<title><%= yield(:title) || "Social web site" %></title>
	<%#= stylesheet_link_tag 'main.css', :media=> 'screen' %>
	<%= theme_stylesheet_link_tag 'main.css', :media=>'screen' %>
	<%= theme_stylesheet_link_tag 'classic.css', :media=>'screen' %>
 	<!--[if lte IE 6]><link href="/stylesheets/ie.css" rel="stylesheet" type="text/css" /><![endif]-->
 	<%= javascript_include_tag  :defaults, "carousel" %>
 	<%#= javascript_include_merged :prodject %>
	<%= yield(:head)%>
</head>
<body>
<div id="main">
	<% unless logged_in? %>
		<div id="head">
		 	<h1><%= link_to image_tag("logo.gif", :alt=>"логотип компании"), root_path(:subdomain => false) %></h1>
			<%= image_tag("slogan.gif", :alt=>"Хороший слоган!", :class=>"slogan") %>
		</div>
	<% end %>
    <div id="topPanel">
    	<div class="conteiner">
        	<div class="left">
             <%= render :partial=>"includes/banner" %>
             <%= render :partial=>"includes/menu" %>
           </div>
        </div>
        <div class="right">
        	<% if logged_in? %>
        		<%= render :partial=>"includes/user_panel", :object=>current_user %>
        	<% else %>
		      	<div class="body">
	              <div class="userPic"><img src="/images/userpic<%= params[:controller] == 'pages' && params[:id].include?('kuda-ya-popal') ? '2' : ''%>.gif" /></div>
	              <div class="userPanel"><%= render :partial=>"includes/form_login" %></div>
	          </div>
	          <div class="bottom">
	          		<%= link_to Page.what_is_it.title, page_path(Page.what_is_it), :class=>"userLink" unless Page.what_is_it.nil?%>
	              <%= link_to "Создать новый аккаунт", signup_path, :class=>"panel" %>
	          </div>
          <% end %>
        </div>
    </div>
    <%= render :partial=>"includes/form_search" %>
 
   	<%= yield %>

		<div class="clear"></div>
    
</div>

<div id="bottom">
    	<%= render :partial=>"includes/pages" %>
      <div>Все авторские права принадлежат их непосредственным владельцам. 2008 tematika.kiev.ua</div>
</div>
<%= yield(:footer) %>
</body>
</html>

